package com.gitee.cirnochat.common.event;

import com.gitee.cirnochat.login.model.enums.DeviceType;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class DeviceOfflineEvent extends ApplicationEvent {
    private final Long userId;
    private final String deviceId;
    private final String deviceName;
    private final DeviceType deviceType;

    public DeviceOfflineEvent(Object source, Long userId, String deviceId,String deviceName, DeviceType deviceType) {
        super(source);
        this.userId = userId;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.deviceType = deviceType;
    }
}